home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 11
/
Mac Magazin and MacEasy Magazine CD - Issue 11.iso
/
Sharewarebibliothek
/
Entwickler
/
CDEF-DeBugger 2.0 ƒ
/
main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-31
|
999b
|
54 lines
// application globals
Boolean gDone;
// prototypes for the application
void InitToolbox( void );
void InitGlobals( void );
/********************************************************************
Init Tool Box Function
*********************************************************************/
void InitToolbox()
{
InitGraf( (Ptr) &qd.thePort );
InitFonts();
InitWindows();
InitMenus();
FlushEvents( everyEvent,0 );
TEInit();
InitDialogs( 0L );
InitCursor();
}
/********************************************************************
Init Tool Box Function
*********************************************************************/
void InitGlobals( void )
{
gDone = FALSE;
}
/********************************************************************
main Function
*********************************************************************/
main()
{
InitToolbox();
InitGlobals();
DrawTheMenuBar();
DrawMyWindow();
do {
EventLoop();
}while( gDone != TRUE );
ExitToShell();
}